﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Stone.ServiceInterfaces.ServiceInterfaces;
using CourseArraging.DAO;

namespace Stone.ServiceImpl.ServiceImpl
{
    class XyService : IXyService
    {
        XyDAO xydao = new XyDAO();
        #region IXyService 成员

        public void Add(DataContracts.XyEntity xyEntity)
        {
            xydao.Add(xyEntity);
        }

        public void Delete(int qdxy_id)
        {
            xydao.Delete(qdxy_id);
        }

        public DataContracts.XyEntity GetEntity(int qdxy_id)
        {
            return xydao.GetEntity(qdxy_id);
        }

        public System.Data.DataTable GetList(string strWhere)
        {
            return xydao.GetList(strWhere);
        }

        public void Update(DataContracts.XyEntity xyEntity)
        {
            xydao.Update(xyEntity);
        }

        public void UpdateState(string qdxy_id, string qdxy_zt)
        {
            xydao.UpdateState(qdxy_id,qdxy_zt);
        }

        #endregion
    }
}
